const storage = window.localStorage
const TokenKey = 'bos-token'

export function getToken () {
  return storage.getItem(TokenKey)
}

export function setToken (data) {
  const _data = JSON.stringify(data)
  return storage.getItem(TokenKey, _data)
}

export function removeToken () {
  return storage.removeItem(TokenKey)
}
